<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
    <style>
        *{margin:0;padding:0}
        #app{
            width:1000px;
            margin:20px auto;
            padding:20px;
            display: flex;
            flex-wrap: wrap;
            box-shadow: 0 0 5px 3px #333;
            justify-content: space-around;
        }
        img{
            width:180px;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="item" v-for="item of arr">
            <img :src="item.coverImgUrl"/>
            <p>{{item.name.slice(0,6)}}</p>
        </div>
    </div>
    <script>
        let url = "http://localhost:3000/top/playlist/?cat=华语"
        new Vue({
            el:"#app",
            data:{
                arr:""
            },
            mounted() {
                $.ajax({
                    url,
                    type:"get",
                    dataType:"json",
                    success:res=>{
                        console.log(res);
                        this.arr = res.playlists;
                    }
                })
            },
        })
    </script>
</body>
</html>